package com.wans.guli.product.feign;

import com.wans.guli.common.utils.R;
import com.wans.guli.product.feign.vo.MemberPriceRestVO;
import com.wans.guli.product.feign.vo.SkuFullReductionRestVO;
import com.wans.guli.product.feign.vo.SkuLadderRestVO;
import com.wans.guli.product.feign.vo.SpuBoundsRestVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;

@FeignClient(value = "guli-coupon", path = "/guli-coupon")
@ResponseBody
public interface CouponFeignClient {

    /**
     * 保存
     */
    @PostMapping("/coupon/spubounds/save")
    R save(@RequestBody SpuBoundsRestVO spuBounds);

    @PostMapping("/coupon/skuladder/save")
    R save(@RequestBody SkuLadderRestVO skuLadder);

    @PostMapping("/coupon/skufullreduction/save")
    R save(@RequestBody SkuFullReductionRestVO skuFullReduction);

    @PostMapping("/coupon/memberprice/saveBatch")
    R save(@RequestBody List<MemberPriceRestVO> memberPrice);
}
